package com.zmytest.annotation.scope.prototype;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created on 2018/12/29.
 *
 * @author zhangmingyu
 */
@RestController
@RequestMapping("/annotation/scope/prototype")
public class ScopePrototypeController {

    @Autowired
    private ScopePrototype scopePrototype;

    @GetMapping("/test1")
    public void test(){
        System.out.println(scopePrototype);
        System.out.println(scopePrototype.getName());
    }
}
